package com.nacosclient.nacosclient;

import com.netflix.hystrix.exception.HystrixTimeoutException;
import feign.hystrix.FallbackFactory;

public class FeignClientService2FallBack  implements FallbackFactory<FeignClientService2> {
	@Override
	public FeignClientService2 create(Throwable cause) {
		return new FeignClientService2Impl(

		) {
			@Override
			public String test2() {
				if(cause instanceof HystrixTimeoutException){
					return  "时间超时";
				}
				return "未知";
			}

			@Override
			public String test3() {
				if(cause instanceof HystrixTimeoutException){
					return  "时间超时";
				}
				return "未知";
			}
		};

	}
}
